package org.jcut.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * commodity
 * @author 
 */
public class Commodity {
	private String id;
	private String name;
	private String brand;
	private Integer activity;
	private String t_id;

	

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Commodity [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append(", brand=");
		builder.append(brand);
		builder.append(", activity=");
		builder.append(activity);
		builder.append(", t_id=");
		builder.append(t_id);
		builder.append(", price=");
		builder.append(price);
		builder.append(", details=");
		builder.append(details);
		builder.append(", sales=");
		builder.append(sales);
		builder.append(", start_time=");
		builder.append(start_time);
		builder.append(", end_time=");
		builder.append(end_time);
		builder.append(", activity_prices=");
		builder.append(activity_prices);
		builder.append(", dis=");
		builder.append(dis);
		builder.append(", stock=");
		builder.append(stock);
		builder.append(", specs=");
		builder.append(specs);
		builder.append(", weight=");
		builder.append(weight);
		builder.append(", t_img=");
		builder.append(t_img);
		builder.append(", img=");
		builder.append(img);
		builder.append(", cBrand=");
		builder.append(cBrand);
		builder.append(", cPack=");
		builder.append(cPack);
		builder.append(", type=");
		builder.append(type);
		builder.append("]");
		return builder.toString();
	}

	private Double price;
	private String details;
	private Integer sales;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date start_time;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern ="yyyy-MM-dd")
	private Date end_time;
	private Double activity_prices;
	private Integer dis;
	private Integer stock;	
	private String specs;
	private String weight;


	private String t_img;
	private TImg img;
	private Brand cBrand;
	private Pack cPack;
	private Type type;
	
	


	public Commodity() {
		super();
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public Integer getActivity() {
		return activity;
	}
	public void setActivity(Integer activity) {
		this.activity = activity;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public Integer getSales() {
		return sales;
	}
	public void setSales(Integer sales) {
		this.sales = sales;
	}
	public Date getStart_time() {
		return start_time;
	}
	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}
	public Date getEnd_time() {
		return end_time;
	}
	public void setEnd_time(Date end_time) {
		this.end_time = end_time;
	}
	public Double getActivity_prices() {
		return activity_prices;
	}
	public void setActivity_prices(Double activity_prices) {
		this.activity_prices = activity_prices;
	}
	public Integer getDis() {
		return dis;
	}
	public void setDis(Integer dis) {
		this.dis = dis;
	}
	public Integer getStock() {
		return stock;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	public String getSpecs() {
		return specs;
	}
	public void setSpecs(String specs) {
		this.specs = specs;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getT_img() {
		return t_img;
	}
	public void setT_img(String t_img) {
		this.t_img = t_img;
	}
	public TImg getImg() {
		return img;
	}
	public void setImg(TImg img) {
		this.img = img;
	}


	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public Brand getcBrand() {
		return cBrand;
	}

	public void setcBrand(Brand cBrand) {
		this.cBrand = cBrand;
	}

	public Pack getcPack() {
		return cPack;
	}

	public void setcPack(Pack cPack) {
		this.cPack = cPack;
	}

	public String getT_id() {
		return t_id;
	}

	public void setT_id(String t_id) {
		this.t_id = t_id;
	}



}